package tst

//println Object.metaClass;
//groovy.lang.MetaClass mc =  Object.metaClass;
//println mc;
//Object.metaClass.f= {println 'hello'}
//
//println Object.metaClass;
//
//String a = '';
//
//a.f();

//def emc = new ExpandoMetaClass(Object)
//emc.f = {
//	println 'hello'
//}
//emc.g = {
//	println 'world'
//}
//emc.initialize()
//Object.metaClass = emc;
Object.metaClass.f= {println 'hello'};

Object b ='';
//b.metaClass = emc;
b.f()

String.metaClass.f= {println 'world'};;
Object c = new String();
c.f()